if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sp_updateOrder]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[sp_updateOrder]
GO
CREATE PROC sp_updateOrder
	@id				int,
	@totalAmount	varchar(20)
AS
BEGIN
	DECLARE @lastUpdate		datetime
	SELECT @lastupdate = getDate()
	UPDATE OrderRequest SET
			LastUpdate = @lastupdate,
			TotalAmount = @totalAmount
		WHERE ID = @id
END